<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="author" content="http://www.softwhy.com/" />
		<title>蚂蚁部落</title>
		<style>
			* {
				margin: 0px;
				padding: 0px;
			}
			
			body {
				height: 1500px;
			}
		</style>
		<script type="text/javascript">
			window.onbeforeunload = function() {
				var warning = "确认退出?";
				return warning;
				console.log(1);
				alert("123456");
			}
		</script>
	</head>

	<body>
		<div id="top"></div>
	</body>

</html>